package com.lijing.mock;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;


/**
 * 应用启动类
 * @author by lijing
 * @date 2019/12/2 0002 11:31
 */
@Slf4j
@ServletComponentScan("com.lijing.mock")
@SpringBootApplication
public class Application {

    private final InitMongodb initMongodb;

    public Application(InitMongodb initMongodb) {
        this.initMongodb = initMongodb;
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        //加载spring上下文
        log.info("mock-platform started!!!");
        //系统启动完成后初始化mongodb表信息

    }



}
